package com.dean.others;

public enum SimpleCalculate {
    ADDTION{
        @Override
        public Double execute(Double x, Double y){
            return x+y;
        }
    },
    SUBTRACTION{
        @Override
        public Double execute(Double x, Double y){
            return x-y;
        }
    },
    MULTIPLICATION{
        @Override
        public Double execute(Double x, Double y){
            return x*y;
        }
    },
    DIVISION{
        @Override
        public Double execute(Double x, Double y){
            return x/y;
        }
    };

    public abstract Double execute(Double x, Double y);
}
